<?php

class Application_Model_DbTable_Registries extends Zend_Db_Table_Abstract {

   protected $_name = 'registries';

   public function readRegistry($id) {
      $row = $this->fetchRow('id = ' . $id);
      if (!$row) {
         throw new Exception("$id not found");
      }
      return $row->toArray();
   }
}

